package com.ayf.payment.game.api.mapper;

import com.ayf.payment.game.api.dto.SiteStatisticsSummaryDTO;
import com.ayf.payment.game.api.dto.criteria.CleanCriteria;
import com.ayf.payment.game.api.dto.criteria.SiteStatisticsCriteria;
import com.ayf.payment.game.api.entity.SiteStatistics;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SiteStatisticsMapper extends Mapper<SiteStatistics> {
    List<SiteStatistics> list(SiteStatisticsCriteria siteStatisticsCriteria);

    void updateSiteStatisticsOrderNumAndChargeAmt(SiteStatistics siteStatistics);

    SiteStatisticsSummaryDTO getSiteStatisticsSummary(SiteStatisticsCriteria siteStatisticsCriteria);

    /**
     * 清理网站统计
     *
     * @param clean
     * @return
     */
    int cleanSiteStatistics(@Param("clean") CleanCriteria clean);

    int updateSiteStatisticsVistLoginCount(SiteStatistics siteStatistics);
}